projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e68373c
)
Don't be hyper about requiring that lines in in CR/NL - the IGC spec
author
robertl
<robertl>
Tue, 23 Aug 2005 17:06:30 +0000
(17:06 +0000)
committer
robertl
<robertl>
Tue, 23 Aug 2005 17:06:30 +0000
(17:06 +0000)
apparently says the last line may not.
igc.c
patch
|
blob
|
history
diff --git
a/igc.c
b/igc.c
index 1874e4edb999fed1005bb7f10d77e81452602fcf..95c7d41ac9c626d9f0109c9c4896d6a0dd1f6f30 100644
(file)
--- a/
igc.c
+++ b/
igc.c
@@
-101,7
+101,7
@@
static igc_rec_type_t get_record(char *rec)
}
}
len = strlen(rec);
- if (len < 3 || rec[
len - 2] != '\r' || rec[len - 1] != '\n' || rec[
0] < 'A' || rec[0] > 'Z') {
+ if (len < 3 || rec[0] < 'A' || rec[0] > 'Z') {
warning(MYNAME " bad input record: '%s'\n", rec);
return rec_bad;
}